{% extends "templates/base.html" %}

{% block title %}密码修改{% endblock %}

{% block content_title %}密码修改{% endblock %}


{% block content_body %}

<div class="panel-body">
    <div class="row">
        <div class="col-lg-6">
            <form role="form" action="/account/password_change" method="post">{% csrf_token %}
                {{ form.as_p }}
                {% if error.old_password.0 %}
                    <span>{{ error.old_password.0 }}</span>
                    {% endif %}
                <div class="form-group">
                    <input type="submit" class="btn btn-lg btn-success btn-block" value="修改"/>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}